/**
 * 
 */
package sk.gtug.googleek.client.view;

import com.google.gwt.user.client.ui.AcceptsOneWidget;
import com.google.gwt.user.client.ui.IsWidget;
import com.google.gwt.user.client.ui.Panel;

/**
 * @author ladislav.gazo
 */
public class SimpleDisplayWrapper implements AcceptsOneWidget {
	private final Panel panel;
	
	public SimpleDisplayWrapper(Panel panel) {
		super();
		this.panel = panel;
	}

	@Override
	public void setWidget(IsWidget w) {
		panel.clear();
		panel.add(w);
	}
}
